]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
app-display: Remove AppIconMenu::popup
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 15 Sep 2011 19:49:13 +0000 (21:49 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 15 Sep 2011 20:01:58 +0000 (22:01 +0200)
The signal is just duplicating the parent class' ::open-state-changed
signal, so remove it.

js/ui/appDisplay.js

index da371e5f2bf4e92b04beb57988740d6154549091..e348555fd71100ed1ab6040eb556872749a9b4aa 100644 (file)
@@ -559,7 +559,7 @@ AppWellIcon.prototype = {
             this._menu.connect('activate-window', Lang.bind(this, function (menu, window) {
                 this.activateWindow(window);
             }));
-            this._menu.connect('popup', Lang.bind(this, function (menu, isPoppedUp) {
+            this._menu.connect('open-state-changed', Lang.bind(this, function (menu, isPoppedUp) {
                 if (!isPoppedUp)
                     this._onMenuPoppedDown();
             }));
@@ -643,7 +643,6 @@ AppIconMenu.prototype = {
         this._source = source;
 
         this.connect('activate', Lang.bind(this, this._onActivate));
-        this.connect('open-state-changed', Lang.bind(this, this._onOpenStateChanged));
 
         this.actor.add_style_class_name('app-well-menu');
 
@@ -707,14 +706,6 @@ AppIconMenu.prototype = {
         this.open();
     },
 
-    _onOpenStateChanged: function (menu, open) {
-        if (open) {
-            this.emit('popup', true);
-        } else {
-            this.emit('popup', false);
-        }
-    },
-
     _onActivate: function (actor, child) {
         if (child._window) {
             let metaWindow = child._window;